@*
 *Author：jxx
 *Contact：283591387@qq.com
 *Date：2018-07-01
 * 此代码由框架生成，请勿随意更改
 *@
@{
    Layout = "~/Views/Shared/ManagerLayout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <title></title>
</head>
<body>
    <div style=" padding: 0px 5px 0px 2px; height: 100%;">

        <div id="lay-search-panel" class="panel lay-panel" style=" margin-bottom: 5px;border:0px;">
        </div>
        <div id="lay-reslut" class=" lay-reslut ">
            <table id="dataGrid"></table>
        </div>
    </div>
</body>
</html>





<script>
    @{ViewBag.dropDownIds = "html";}
    var searchData = [[{"columnType":"int","dataSource":[],"displayType":"","text":"访问用户Id","require":false,"id":"User_Id"},{"columnType":"string","dataSource":[],"displayType":"","text":"访问用户","require":false,"id":"UserTrueName"},{"columnType":"string","dataSource":[],"displayType":"","text":"服务器IP","require":false,"id":"ServerIP"}],[{"columnType":"datetime","dataSource":[],"displayType":"datetime","text":"访问时间","require":false,"id":"CreateDate"},{"columnType":"string","dataSource":optionConfightml,"displayType":"selectList","text":"访问类型","require":false,"id":"TableName"}]];
    var editData = [];


    var gridParameters = {
        loadMsg: '数据正在加载。。。。',
        //rownumbers: true,
        pageSize: 30,
        pageList: [10, 20, 30, 50, 80, 100, 200, 500, 1000],
        height: 340,
        key:'LogId',
        url: '/vApp_StaticBrowserLog/GetPageData',
        nameSpace:'',
        queryParams: {TableName:'vApp_StaticBrowserLog',sort:'LogId',Foots:' ',Wheres:'{}'},
        pagination: true,
        striped:true,
        fileLink:false,
        richText:false,
        hasSection:false,
        cnName:'静态访问视图',
        calculateHeight:{id:'#lay-search-panel'},
        calculateWidth:{id:'#lay-search-panel',totalWidth:940,totalCol:7},
    frozenColumns: [[
     { field: 'ck', checkbox: true }
    ]],
    //showFooter: true,
        columns: [[{field:'LogId',title:'LogId',datatype:'int',width:80,hidden:true,require:true,align:'left'},
                       {field:'UserTrueName',title:'访问用户',datatype:'string',width:90,align:'left',sortable:true},
                       {field:'HeadImageUrl',title:'访问者头像',datatype:'string',width:220,formatter:function (val, row, index) { return $.fn.layOut('createImageUrl',{row:row,key:'HeadImageUrl'})},align:'left'},
                       {field:'User_Id',title:'访问用户Id',datatype:'int',width:80,align:'left'},
                       {field:'ServerIP',title:'服务器IP',datatype:'string',width:90,align:'left'},
                       {field:'TablePrimaryKey',title:'TablePrimaryKey',datatype:'int',width:80,hidden:true,align:'left'},
                       {field:'TableName',title:'访问类型',datatype:'string',width:90,formatter: function (val, row, index) {
    return dataSourcehtml.textFormatter(optionConfightml, val, row, index);
    },
align:'left'},
                       {field:'Url',title:'Url',datatype:'string',width:220,align:'left'},
                       {field:'CreateDate',title:'访问时间',datatype:'DateTime',width:150,align:'left',sortable:true},
                       {field:'UserName',title:'用户',datatype:'string',width:90,hidden:true,align:'left'}]]
    };

    var $elementGrid;
    window.onload = function () {
        $elementGrid = $('#dataGrid').datagrid(gridParameters);
    }

    var $elementDetailGrid;
    var gridDetailParameters = '';
</script>
